<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>北大青鸟办公自动化管理系统</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
  
  <body>
  <iframe src="head.jsp" width="100%" scrolling="no" frameborder="0" ></iframe>

  <div class="main"><div class="global-width">	
	  <iframe src="nav.jsp" scrolling="no" align="left" width="191px" height="400px"></iframe>
    <div class="action">
    	<div class="t">邮件列表</div>
   		<div class="pages">
        	<!--增加报销单 区域 开始-->
                <table width="90%" border="0" cellspacing="0" cellpadding="0" class="list">
                  <tr>
                    <td>发件人</td>
                    <td>邮件主题</td>
                    <td>发送时间</td>
                    <td>状态</td>
                    <td>是否有附件</td>
                    <td>查看</td>
                    <td>删除</td>
                  </tr>
                  <s:iterator value="emails">
                  	<tr>
                    <td><s:property value="usernameFrom"/> </td>
                    <td><s:property value="title"/> </td>
                    <td><s:date name="createtime" format="yyyy-MM-dd"/> </td>
                    <td><s:property value="state"/> </td>
                    <td><s:property value="attachment!=null"/> </td>
                    <td><a href="email1!search.action?eid=<s:property value='id'/>" target="_top"><img src="images/search.gif" width="16" height="15" /></a> </td>
                    <td><a href="email1!delete.action?eid=<s:property value='id'/>"> <img src="images/delete.gif" width="16" height="16" /> </a> </td>                
                  </tr>
                  
                  </s:iterator>                
                  <tr>
                    <td colspan="6" align="center">首页 前5页 1 2 3 4 5 后5页 尾页</td>
                  </tr>
                </table>        
            <!--增加报销单 区域 结束-->
        </div>
    </div>
</div></div>
 <iframe src="footer.jsp" width="100%" scrolling="no" frameborder="0" ></iframe>
  </body>
</html>
